<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libsdl2</Name>
        <Homepage>https://www.libsdl.org/</Homepage>
        <Packager>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Packager>
        <License>Zlib</License>
        <IsA>library</IsA>
        <Summary>Simple Direct Media Layer 2.0 series</Summary>
        <Description>libsdl is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer.</Description>
        <Archive sha1sum="2a1415a201ac07c353c6d8e4daaa11c8910fb879" type="targz">
            https://github.com/libsdl-org/SDL/releases/download/release-2.26.2/SDL2-2.26.2.tar.gz
        </Archive>
        <BuildDependencies>
            <Dependency>DirectFB-devel</Dependency>
            <Dependency>alsa-lib-devel</Dependency>
            <Dependency>audiofile-devel</Dependency>
            <Dependency>dbus-devel</Dependency>
            <Dependency>ibus-devel</Dependency>
            <Dependency>libXi-devel</Dependency>
            <Dependency>vulkan-devel</Dependency>
            <Dependency>libX11-devel</Dependency>
            <Dependency>libXext-devel</Dependency>
            <Dependency>libXinerama-devel</Dependency>
            <Dependency>libXrandr-devel</Dependency>
            <Dependency>libXrender-devel</Dependency>
            <Dependency>libXt-devel</Dependency>
            <Dependency>libXv-devel</Dependency>
            <Dependency>libglvnd-devel</Dependency>
            <Dependency>mesa-glu-devel</Dependency>
            <Dependency>libXScrnSaver-devel</Dependency>
            <Dependency>libxkbcommon-devel</Dependency>
            <Dependency>egl-wayland-devel</Dependency>
            <Dependency>wayland-protocols-devel</Dependency>
            <Dependency>pulseaudio-libs-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <!-- <Patch level="1">fedora/SDL2-2.0.9-khrplatform.patch</Patch> -->
        </Patches>
    </Source>

    <Package>
        <Name>libsdl2</Name>
        <Summary>libsdl2 reference documents</Summary>
        <RuntimeDependencies>
            <Dependency>DirectFB</Dependency>
            <Dependency>alsa-lib</Dependency>
            <Dependency>audiofile</Dependency>
            <Dependency>libX11</Dependency>
            <Dependency>libXScrnSaver</Dependency>
            <Dependency>libXext</Dependency>
            <Dependency>libXinerama</Dependency>
            <Dependency>libXrandr</Dependency>
            <Dependency>libXrender</Dependency>
            <Dependency>libXt</Dependency>
            <Dependency>libglvnd</Dependency>
            <Dependency>pulseaudio-libs</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="library">/usr/lib/libSDL2.so</Path>
            <Path fileType="library">/usr/lib/libSDL2.a</Path>
            <Path fileType="library">/usr/lib/libSDL2main.a</Path>
            <Path fileType="library">/usr/lib/libSDL2-2.0.so.0*</Path>
            <Path fileType="library">/usr/lib/libSDL2_test.a</Path>

        </Files>
    </Package>

    <Package>
        <Name>libsdl2-devel</Name>
        <Summary>Development files for libsdl2</Summary>
        <RuntimeDependencies>
            <Dependency release="current">libsdl2</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="header">/usr/include/SDL2</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
            <Path fileType="data">/usr/share/aclocal</Path>
            <Path fileType="library">/usr/lib/cmake/SDL2</Path>
        </Files>
    </Package>

    <Package>
        <Name>libsdl2-32bit</Name>
        <Summary>32-bit shared libraries for libsdl2</Summary>
        <BuildType>emul32</BuildType>
        <BuildDependencies>
            <Dependency>libXt-32bit</Dependency>
            <Dependency>libX11-32bit</Dependency>
            <Dependency>libXext-32bit</Dependency>
            <Dependency>libglvnd-32bit</Dependency>
            <Dependency>alsa-lib-32bit</Dependency>
            <Dependency>audiofile-32bit</Dependency>
            <Dependency>libXrandr-32bit</Dependency>
            <Dependency>libXrender-32bit</Dependency>
            <Dependency>libXinerama-32bit</Dependency>
            <Dependency>libXScrnSaver-32bit</Dependency>
            <Dependency>pulseaudio-libs-32bit</Dependency>
        </BuildDependencies>
        <RuntimeDependencies>
            <Dependency>libXt-32bit</Dependency>
            <Dependency>libX11-32bit</Dependency>
            <Dependency>libXext-32bit</Dependency>
            <Dependency>alsa-lib-32bit</Dependency>
            <Dependency>libglvnd-32bit</Dependency>
            <Dependency>audiofile-32bit</Dependency>
            <Dependency>libXrandr-32bit</Dependency>
            <Dependency>libXrender-32bit</Dependency>
            <Dependency>libXinerama-32bit</Dependency>
            <Dependency>libXScrnSaver-32bit</Dependency>
            <Dependency>pulseaudio-libs-32bit</Dependency>
            <Dependency release="current">libsdl2</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib32</Path>
        </Files>
    </Package>

    <History>
        <Update release="12">
            <Date>2023-01-24</Date>
            <Version>2.26.2</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="11">
            <Date>2022-10-10</Date>
            <Version>2.24.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="10">
            <Date>2021-10-24</Date>
            <Version>2.0.16</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="9">
            <Date>2021-10-11</Date>
            <Version>2.0.16</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="8">
            <Date>2021-05-08</Date>
            <Version>2.0.14</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="7">
            <Date>2020-04-10</Date>
            <Version>2.0.12</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="6">
            <Date>2020-01-17</Date>
            <Version>2.0.10</Version>
            <Comment>Version bump</Comment>
            <Name>İdris Kalp</Name>
            <Email>idriskalp@gmail.com</Email>
        </Update>
        <Update release="5">
            <Date>2018-08-05</Date>
            <Version>2.0.7</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="4">
            <Date>2017-12-12</Date>
            <Version>2.0.5</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-02-16</Date>
            <Version>2.0.5</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2.0.4</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-04-11</Date>
            <Version>2.0.4</Version>
            <Comment>First release</Comment>
            <Name>Mathias Freire</Name>
            <Email>mathiasfreire45@gmail.com</Email>
        </Update>
    </History>
</PISI>
